package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.ErpCollectAbsentSku;
import com.ruoyi.gather.api.domain.ErpCollectProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "remoteCollectAbsentSkuService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteCollectAbsentSkuService {

    /**
     * 根据条件查询不存在的sku
     * @param skuCode
     * @return
     */
    @GetMapping("/gather/collectAbsentSku/getBySkuCode/{skuCode}")
    ErpCollectAbsentSku getBySkuCode(@PathVariable("skuCode")String skuCode);

    /**
     * 根据条件查询不存在的sku
     * @param collectAbsentSku
     * @return
     */
    @GetMapping("/gather/collectAbsentSku/addSku")
    R<Void> addSku(@RequestBody ErpCollectAbsentSku collectAbsentSku);

}
